from urllib.parse import quote

# 使用session时需要参与加密的盐
SECRET_KEY='abcdef123456789'

# Mysql 数据库配置
host = '192.168.2.80'
username = 'root'
passwd = quote('Forest@123')
port = 3306
database = 'flask'
SQLALCHEMY_DATABASE_URI = f'mysql+pymysql://{username}:{passwd}@{host}:{port}/{database}?charset=utf8'

# Redis数据库配置
redis_host = '192.168.2.80'
redis_port = 6379
redis_db = 0
redis_pass = ''

# MongoDB数据库配置
MONGODB_DB = 'flask'
MONGODB_HOST = '192.168.2.80'
MONGODB_PORT = 27017
MONGODB_USERNAME = 'forest'
MONGODB_PASSWORD = 'forest'

# 邮箱配置
MAIL_SERVER = 'smtp.qq.com'
MAIL_USE_SSL = True
MAIL_PORT = 465
MAIL_USERNAME = '2414758327@qq.com'
MAIL_PASSWORD = 'wewvtuhwjoybdjgi'
MAIL_DEFAULT_SENDER = '2414758327@qq.com'
